<?php
$arrQuestion = $this->question;
$arrQuestionCate = $this->questioncate;
$countQuestion = count($arrQuestion);
?>

<div>
    <?php
    if ($countQuestion > 0) {
        foreach ($arrQuestion as $val) {
            ?>
    <p>
        <span><a href="#"><?=$val['quest_title']?></a></span> <BR />
        <span><em>Chuyên ngành: <?=$arrQuestionCate[$val['cateid']]['cate_name']?></em> | <em>Hỏi lúc: <?=$val['date_ask']?></em></span> <BR />
        <span><?=$val['quest_content']?></span> <BR />
        <span><em><?=$val['view_num']?> Lượt xem</em> | <em><?=$val['hot_point']?> Điểm</em> | <em><?=$val['ans_num']?> Trả lời</em> | <em><?=$val['follow_num']?> Theo dõi</em></span>
    </p>
            <?php
        }
    }
    ?>
</div>
